#include <stdio.h>

int main()
{
    int n;
    scanf("%d", &n);
    int k = 1;
    for (int j = 0; j < n; ++j)
    {
        for (int i = 0; i < n - j; ++i)
        {
            printf("%02d", k++);
        }
        printf("\n");
    }
    return 0;
}